import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import ShopNav from '@/components/ShopNav'
import {
  Button, Dropdown,
  DropdownMenu,
  DropdownItem, Submenu, Menu,
  MenuItem,
  MenuItemGroup, Divider, InputNumber, Select,Message
} from 'element-ui';//按需引入element-ui组件
import TypeNav from '@/components/TypeNav'
import Carousel from '@/components/Carousel'
// 按需使用
Vue.use(Button)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Submenu)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Divider)
Vue.use(InputNumber)
Vue.use(Select)
Vue.prototype.$message = Message;

// 全局注册组件
Vue.component("ShopNav", ShopNav)
Vue.component('TypeNav', TypeNav)
Vue.component('Carousel', Carousel)

Vue.config.productionTip = false

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
